package com.yami.shop.personnft.common.dao;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yami.shop.personnft.common.model.TransferBatchApply;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper接口
 *
 * @author zhangchaoqun
 * @date 2021-10-21
 */
public interface TransferBatchApplyMapper
{
    public void save(@Param("transferBatchApply") TransferBatchApply transferBatchApply);
    public void saveBatch(@Param("list") List<TransferBatchApply> list);
    /**
     * 批量修改
     *
     */
    void updateBatch(@Param("list") List<TransferBatchApply> list);
    public void updateIntoStautsByBatchId(@Param("batchId") Long batchId,@Param("status") Integer status,@Param("msg") String msg,@Param("times") Integer times);
    public void updateIntoSurplusContentByBatchId(@Param("batchId") Long batchId,@Param("times") Integer times,@Param("surplusContent")String surplusContent);
    public TransferBatchApply selectIntoStautsByBatchId(@Param("batchId") Long batchId);
    public List<TransferBatchApply> selectListByApplyId(@Param("applyId") String applyId);
    public Integer selectCountByApplyId(@Param("applyId") String applyId);
    public String selectProportionByApplyId(@Param("applyId") String applyId);
    public IPage<TransferBatchApply> selectPageList(Page page, @Param("transferBatchApply") TransferBatchApply transferBatchApply);
    public void updateTimesByBatchId(@Param("batchId") Long batchId);
    public void updateIntoStautsByBatchIds(@Param("batchIds") List<Long> batchIds,@Param("status") Integer status);
}
